package study.spring.transaction;

import org.springframework.jdbc.core.JdbcTemplate;

public class InsertOne {

	private JdbcTemplate template;

	public void add() {
		String sql = "INSERT INTO tbl_chouti_edit_link (name,img_url,url) VALUES ('5', '/images/image48.png', 'http://www.baidu.com')";
		template.execute(sql);
	}

	public JdbcTemplate getTemplate() {
		return template;
	}

	public void setTemplate(JdbcTemplate template) {
		this.template = template;
	}

}
